src/hotspot/share/services/threadService.cpp
changeset 48831 05894c073b7e
parent 48105 8d15b1369c7a
child 48955 e22914003cf0
equal deleted inserted replaced
48830:11920d5d14a8 48831:05894c073b7e
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, 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.
   487     int length = list->length();
   487     int length = list->length();
   488     if (length > 0) {
   488     if (length > 0) {
   489       _locked_monitors = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<oop>(length, true);
   489       _locked_monitors = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<oop>(length, true);
   490       for (int i = 0; i < length; i++) {
   490       for (int i = 0; i < length; i++) {
   491         MonitorInfo* monitor = list->at(i);
   491         MonitorInfo* monitor = list->at(i);
   492         assert(monitor->owner(), "This monitor must have an owning object");
   492         assert(monitor->owner() != NULL, "This monitor must have an owning object");
   493         _locked_monitors->append(monitor->owner());
   493         _locked_monitors->append(monitor->owner());
   494       }
   494       }
   495     }
   495     }
   496   }
   496   }
   497 }
   497 }