翻訳と辞書
Words near each other
・ Lockroy
・ Locks
・ Locks and Weirs on the River Lea
・ Locks and weirs on the River Thames
・ Locks Brasserie
・ Locks Corner, Virginia
・ Locks Cove, Newfoundland and Labrador
・ Locks Creek
・ Locks Farm Meadow
・ Locks Heath
・ Locks Heath F.C.
・ Locks of Love
・ Locks on the Canal du Midi
・ Locks on the Chesapeake and Ohio Canal
・ Locks with ordered sharing
Locks-and-keys
・ Locksbottom
・ Locksbrook
・ Locksbrook Cemetery
・ Lockset
・ Locksley
・ Locksley (band)
・ Locksley (West Chester Railroad station)
・ Locksley Hall
・ Locksley Park, New York
・ Locksley railway station
・ Locksley, New South Wales
・ Locksley, Victoria
・ Locksmith (comics)
・ Locksmith (rapper)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Locks-and-keys : ウィキペディア英語版
Locks-and-keys

Locks-and-keys is a solution to dangling pointers in computer programming languages.
The locks-and-keys approach represents pointers as ordered pairs (key, address) where the key is an integer value. Heap-dynamic variables are represented as the storage for the variable plus a cell for an integer lock value. When a variable is allocated, a ''lock value'' is created and placed both into the variable's cell and into the pointer's key cell. Every access to the pointer compares these two values, and access is allowed only if the values match.
When a variable is deallocated, the key of its pointer is modified to hold a value different from the variable's cell. From then on, any attempt to dereference the pointer can be flagged as an error. Since copying a pointer also copies its cell value, changing the key of the ordered pair safely disables all copies of the pointer.
==See also==

* Tombstone (programming)

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Locks-and-keys」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.