@@ -47,7 +47,7 @@ static void test_pointer(const void* p, bool expected_return_code, const char* e
47
47
48
48
static void test_for_live_c_heap_block (size_t sz, ssize_t offset) {
49
49
char * c = NEW_C_HEAP_ARRAY (char , sz, mtTest);
50
- LOG_HERE (" C-block starts " PTR_FORMAT " , size " SIZE_FORMAT " ." , p2i (c), offset );
50
+ LOG_HERE (" C-block starts " PTR_FORMAT " , size " SIZE_FORMAT " ." , p2i (c), sz );
51
51
memset (c, 0 , sz);
52
52
if (MemTracker::enabled ()) {
53
53
const char * expected_string = " into live malloced block" ;
@@ -69,7 +69,7 @@ static void test_for_dead_c_heap_block(size_t sz, ssize_t offset) {
69
69
return ;
70
70
}
71
71
char * c = NEW_C_HEAP_ARRAY (char , sz, mtTest);
72
- LOG_HERE (" C-block starts " PTR_FORMAT " , size " SIZE_FORMAT " ." , p2i (c), offset );
72
+ LOG_HERE (" C-block starts " PTR_FORMAT " , size " SIZE_FORMAT " ." , p2i (c), sz );
73
73
memset (c, 0 , sz);
74
74
// We cannot just free the allocation to try dead block printing, since the memory
75
75
// may be immediately reused by concurrent code. Instead, we mark the block as dead
@@ -99,13 +99,13 @@ TEST_VM(NMT, location_printing_cheap_live_6) { test_for_live_c_heap_block(4, 0);
99
99
TEST_VM (NMT, location_printing_cheap_live_7) { test_for_live_c_heap_block (4 , 4 ); } // just outside a very small block
100
100
101
101
#ifdef LINUX
102
- TEST_VM (NMT, DISABLED_location_printing_cheap_dead_1 ) { test_for_dead_c_heap_block (2 * K, 0 ); } // start of payload
103
- TEST_VM (NMT, DISABLED_location_printing_cheap_dead_2 ) { test_for_dead_c_heap_block (2 * K, -7 ); } // into header
104
- TEST_VM (NMT, DISABLED_location_printing_cheap_dead_3 ) { test_for_dead_c_heap_block (2 * K, K + 1 ); } // into payload
105
- TEST_VM (NMT, DISABLED_location_printing_cheap_dead_4 ) { test_for_dead_c_heap_block (2 * K, K + 2 ); } // into payload (check for even/odd errors)
102
+ TEST_VM (NMT, location_printing_cheap_dead_1 ) { test_for_dead_c_heap_block (2 * K, 0 ); } // start of payload
103
+ TEST_VM (NMT, location_printing_cheap_dead_2 ) { test_for_dead_c_heap_block (2 * K, -7 ); } // into header
104
+ TEST_VM (NMT, location_printing_cheap_dead_3 ) { test_for_dead_c_heap_block (2 * K, K + 1 ); } // into payload
105
+ TEST_VM (NMT, location_printing_cheap_dead_4 ) { test_for_dead_c_heap_block (2 * K, K + 2 ); } // into payload (check for even/odd errors)
106
106
TEST_VM (NMT, location_printing_cheap_dead_5) { test_for_dead_c_heap_block (2 * K + 1 , 2 * K + 2 ); } // just outside payload
107
- TEST_VM (NMT, DISABLED_location_printing_cheap_dead_6 ) { test_for_dead_c_heap_block (4 , 0 ); } // into a very small block
108
- TEST_VM (NMT, DISABLED_location_printing_cheap_dead_7 ) { test_for_dead_c_heap_block (4 , 4 ); } // just outside a very small block
107
+ TEST_VM (NMT, location_printing_cheap_dead_6 ) { test_for_dead_c_heap_block (4 , 0 ); } // into a very small block
108
+ TEST_VM (NMT, location_printing_cheap_dead_7 ) { test_for_dead_c_heap_block (4 , 4 ); } // just outside a very small block
109
109
#endif
110
110
111
111
static void test_for_mmap (size_t sz, ssize_t offset) {
0 commit comments