|
1 | 1 | /*
|
2 |
| - * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -1028,19 +1028,20 @@ enum LockingMode {
|
1028 | 1028 | //----------------------------------------------------------------------------------------------------
|
1029 | 1029 | // Special constants for debugging
|
1030 | 1030 |
|
1031 |
| -const jint badInt = -3; // generic "bad int" value |
1032 |
| -const intptr_t badAddressVal = -2; // generic "bad address" value |
1033 |
| -const intptr_t badOopVal = -1; // generic "bad oop" value |
1034 |
| -const intptr_t badHeapOopVal = (intptr_t) CONST64(0x2BAD4B0BBAADBABE); // value used to zap heap after GC |
1035 |
| -const int badStackSegVal = 0xCA; // value used to zap stack segments |
1036 |
| -const int badHandleValue = 0xBC; // value used to zap vm handle area |
1037 |
| -const int badResourceValue = 0xAB; // value used to zap resource area |
1038 |
| -const int freeBlockPad = 0xBA; // value used to pad freed blocks. |
1039 |
| -const int uninitBlockPad = 0xF1; // value used to zap newly malloc'd blocks. |
1040 |
| -const juint uninitMetaWordVal= 0xf7f7f7f7; // value used to zap newly allocated metachunk |
1041 |
| -const juint badHeapWordVal = 0xBAADBABE; // value used to zap heap after GC |
1042 |
| -const juint badMetaWordVal = 0xBAADFADE; // value used to zap metadata heap after GC |
1043 |
| -const int badCodeHeapNewVal= 0xCC; // value used to zap Code heap at allocation |
| 1031 | +const jint badInt = -3; // generic "bad int" value |
| 1032 | +const intptr_t badAddressVal = -2; // generic "bad address" value |
| 1033 | +const intptr_t badOopVal = -1; // generic "bad oop" value |
| 1034 | +const intptr_t badHeapOopVal = (intptr_t) CONST64(0x2BAD4B0BBAADBABE); // value used to zap heap after GC |
| 1035 | +const int badStackSegVal = 0xCA; // value used to zap stack segments |
| 1036 | +const int badHandleValue = 0xBC; // value used to zap vm handle area |
| 1037 | +const int badResourceValue = 0xAB; // value used to zap resource area |
| 1038 | +const int freeBlockPad = 0xBA; // value used to pad freed blocks. |
| 1039 | +const int uninitBlockPad = 0xF1; // value used to zap newly malloc'd blocks. |
| 1040 | +const juint uninitMetaWordVal = 0xf7f7f7f7; // value used to zap newly allocated metachunk |
| 1041 | +const jubyte heapPaddingByteVal = 0xBD; // value used to zap object padding in the heap |
| 1042 | +const juint badHeapWordVal = 0xBAADBABE; // value used to zap heap after GC |
| 1043 | +const juint badMetaWordVal = 0xBAADFADE; // value used to zap metadata heap after GC |
| 1044 | +const int badCodeHeapNewVal = 0xCC; // value used to zap Code heap at allocation |
1044 | 1045 | const int badCodeHeapFreeVal = 0xDD; // value used to zap Code heap at deallocation
|
1045 | 1046 | const intptr_t badDispHeaderDeopt = 0xDE0BD000; // value to fill unused displaced header during deoptimization
|
1046 | 1047 | const intptr_t badDispHeaderOSR = 0xDEAD05A0; // value to fill unused displaced header during OSR
|
|
0 commit comments