Set range of memory that is not checked. Used to exclude pointers to stack from marking and GC
| 422 | |
| 423 | // Set range of memory that is not checked. Used to exclude pointers to stack from marking and GC |
| 424 | void SetUnmanagableRange(char* base, unsigned int size) |
| 425 | { |
| 426 | GC::unmanageableBase = base; |
| 427 | GC::unmanageableTop = base + size; |
| 428 | } |
| 429 | int IsPointerUnmanaged(NULLCRef ptr) |
| 430 | { |
| 431 | return ptr.ptr >= GC::unmanageableBase && ptr.ptr <= GC::unmanageableTop; |
no outgoing calls
no test coverage detected