equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 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. |
74 unlink_entry(to_remove); |
74 unlink_entry(to_remove); |
75 FREE_C_HEAP_ARRAY(char, to_remove); |
75 FREE_C_HEAP_ARRAY(char, to_remove); |
76 } |
76 } |
77 } |
77 } |
78 assert(number_of_entries() == 0, "should have removed all entries"); |
78 assert(number_of_entries() == 0, "should have removed all entries"); |
79 free_buckets(); |
79 // Each of the entries in new_entry_free_list() have been allocated in |
|
80 // G1CodeRootSetTable::new_entry(). We never call the block allocator |
|
81 // in BasicHashtable::new_entry(). |
80 for (BasicHashtableEntry<mtGC>* e = new_entry_free_list(); e != NULL; e = new_entry_free_list()) { |
82 for (BasicHashtableEntry<mtGC>* e = new_entry_free_list(); e != NULL; e = new_entry_free_list()) { |
81 FREE_C_HEAP_ARRAY(char, e); |
83 FREE_C_HEAP_ARRAY(char, e); |
82 } |
84 } |
83 } |
85 } |
84 |
86 |