comparison src/share/vm/memory/universe.cpp @ 9060:cc32ccaaf47f

8003310: Enable -Wunused-function when compiling with gcc Summary: Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
author mikael
date Thu, 04 Apr 2013 10:01:26 -0700
parents 42e370795a39
children 8be1318fbe77
comparison
equal deleted inserted replaced
9059:17bf4d428955 9060:cc32ccaaf47f
1333 1333
1334 static uintptr_t _verify_oop_data[2] = {0, (uintptr_t)-1}; 1334 static uintptr_t _verify_oop_data[2] = {0, (uintptr_t)-1};
1335 static uintptr_t _verify_klass_data[2] = {0, (uintptr_t)-1}; 1335 static uintptr_t _verify_klass_data[2] = {0, (uintptr_t)-1};
1336 1336
1337 1337
1338 #ifndef PRODUCT
1339
1338 static void calculate_verify_data(uintptr_t verify_data[2], 1340 static void calculate_verify_data(uintptr_t verify_data[2],
1339 HeapWord* low_boundary, 1341 HeapWord* low_boundary,
1340 HeapWord* high_boundary) { 1342 HeapWord* high_boundary) {
1341 assert(low_boundary < high_boundary, "bad interval"); 1343 assert(low_boundary < high_boundary, "bad interval");
1342 1344
1367 } 1369 }
1368 verify_data[0] = mask; 1370 verify_data[0] = mask;
1369 verify_data[1] = bits; 1371 verify_data[1] = bits;
1370 } 1372 }
1371 1373
1372
1373 // Oop verification (see MacroAssembler::verify_oop) 1374 // Oop verification (see MacroAssembler::verify_oop)
1374 #ifndef PRODUCT
1375 1375
1376 uintptr_t Universe::verify_oop_mask() { 1376 uintptr_t Universe::verify_oop_mask() {
1377 MemRegion m = heap()->reserved_region(); 1377 MemRegion m = heap()->reserved_region();
1378 calculate_verify_data(_verify_oop_data, 1378 calculate_verify_data(_verify_oop_data,
1379 m.start(), 1379 m.start(),