src/share/vm/utilities/workgroup.cpp

changeset 4967
5a9fa2ba85f0
parent 4962
6f817ce50129
child 4993
746b070f5022
     1.1 --- a/src/share/vm/utilities/workgroup.cpp	Fri Apr 19 11:08:52 2013 -0700
     1.2 +++ b/src/share/vm/utilities/workgroup.cpp	Sun Apr 21 20:41:04 2013 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -528,7 +528,7 @@
    1.11  FreeIdSet::FreeIdSet(int sz, Monitor* mon) :
    1.12    _sz(sz), _mon(mon), _hd(0), _waiters(0), _index(-1), _claimed(0)
    1.13  {
    1.14 -  _ids = NEW_C_HEAP_ARRAY(int, sz, mtInternal);
    1.15 +  _ids = new int[sz];
    1.16    for (int i = 0; i < sz; i++) _ids[i] = i+1;
    1.17    _ids[sz-1] = end_of_list; // end of list.
    1.18    if (_stat_init) {
    1.19 @@ -548,7 +548,6 @@
    1.20  
    1.21  FreeIdSet::~FreeIdSet() {
    1.22    _sets[_index] = NULL;
    1.23 -  FREE_C_HEAP_ARRAY(int, _ids, mtInternal);
    1.24  }
    1.25  
    1.26  void FreeIdSet::set_safepoint(bool b) {

mercurial