mirror of
https://github.com/corda/corda.git
synced 2025-06-12 20:28:18 +00:00
check for stack overflow on entry to all non-leaf methods
We now check for stack overflow in the JIT build as well as the interpreted build, throwing a StackOverflowError if the limit (currently hard-coded to 64KB, but should be easy to make configurable) is exceeded.
This commit is contained in:
@ -30,7 +30,7 @@ const unsigned HeapCapacity = 768 * 1024 * 1024;
|
||||
// One of the advantages of a bootimage-based build is that reduces
|
||||
// the overhead of major GCs at runtime since we can avoid scanning
|
||||
// the pre-built heap image entirely. However, this only works if we
|
||||
// can ensure that no part of the heap image (with an exception noted
|
||||
// can ensure that no part of the heap image (with exceptions noted
|
||||
// below) ever points to runtime-allocated objects. Therefore (most)
|
||||
// references in the heap image are considered immutable, and any
|
||||
// attempt to update them at runtime will cause the process to abort.
|
||||
|
Reference in New Issue
Block a user