mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8003310: Enable -Wunused-function when compiling with gcc
Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
This commit is contained in:
parent
33f6dd2215
commit
eeb83733a6
29 changed files with 92 additions and 266 deletions
|
@ -449,8 +449,6 @@ void ObjectSynchronizer::notifyall(Handle obj, TRAPS) {
|
|||
// and explicit fences (barriers) to control for architectural reordering performed
|
||||
// by the CPU(s) or platform.
|
||||
|
||||
static int MBFence (int x) { OrderAccess::fence(); return x; }
|
||||
|
||||
struct SharedGlobals {
|
||||
// These are highly shared mostly-read variables.
|
||||
// To avoid false-sharing they need to be the sole occupants of a $ line.
|
||||
|
@ -1639,11 +1637,6 @@ void ObjectSynchronizer::release_monitors_owned_by_thread(TRAPS) {
|
|||
|
||||
#ifndef PRODUCT
|
||||
|
||||
void ObjectSynchronizer::trace_locking(Handle locking_obj, bool is_compiled,
|
||||
bool is_method, bool is_locking) {
|
||||
// Don't know what to do here
|
||||
}
|
||||
|
||||
// Verify all monitors in the monitor cache, the verification is weak.
|
||||
void ObjectSynchronizer::verify() {
|
||||
ObjectMonitor* block = gBlockList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue