hotspot/src/share/vm/runtime/handles.cpp
changeset 29697 92501504191b
parent 29199 db7ae483ecb2
child 33105 294e48b4f704
equal deleted inserted replaced
29696:01571dfab5be 29697:92501504191b
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    81     handles_visited += chunk_oops_do(f, k, k->top());
    81     handles_visited += chunk_oops_do(f, k, k->top());
    82     k = k->next();
    82     k = k->next();
    83   }
    83   }
    84 
    84 
    85   // The thread local handle areas should not get very large
    85   // The thread local handle areas should not get very large
    86   if (TraceHandleAllocation && handles_visited > TotalHandleAllocationLimit) {
    86   if (TraceHandleAllocation && (size_t)handles_visited > TotalHandleAllocationLimit) {
    87 #ifdef ASSERT
    87 #ifdef ASSERT
    88     warning("%d: Visited in HandleMark : %d",
    88     warning("%d: Visited in HandleMark : %d",
    89       _nof_handlemarks, handles_visited);
    89       _nof_handlemarks, handles_visited);
    90 #else
    90 #else
    91     warning("Visited in HandleMark : %d", handles_visited);
    91     warning("Visited in HandleMark : %d", handles_visited);