mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 09:52:24 +00:00
Make type descriptor dump resilient to increments (mid-GC) tags.
This commit is contained in:
parent
d9fb831fcf
commit
c5561dd0e0
1 changed files with 1 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ VAR
|
|||
BEGIN
|
||||
SYSTEM.GET(SYSTEM.ADR(o) - SIZE(SYSTEM.ADDRESS), addr);
|
||||
String("obj tag: "); Hex(addr,1); Ln;
|
||||
DEC(addr, addr MOD 2); (* Work OK with incremented tags. *)
|
||||
desc := SYSTEM.VAL(tag, addr - (21*SIZE(SYSTEM.ADDRESS) + 24));
|
||||
String("desc at: "); Hex(SYSTEM.VAL(SYSTEM.ADDRESS, desc),1); Ln;
|
||||
String("desc contains:"); Ln;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue