Mercurial > hg > truffle
comparison src/share/vm/classfile/symbolTable.hpp @ 2418:352622fd140a
7032129: Native memory usage grow unexpectedly for vm/oom/*InternedString tests
Reviewed-by: kvn, kamg, jcoomes
author | never |
---|---|
date | Thu, 31 Mar 2011 14:00:41 -0700 |
parents | 924777755fad |
children | 94ec88ca68e2 |
comparison
equal
deleted
inserted
replaced
2416:38fea01eb669 | 2418:352622fd140a |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2011, 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. |
240 assert((size_t)length == StringTableSize * sizeof(HashtableBucket), | 240 assert((size_t)length == StringTableSize * sizeof(HashtableBucket), |
241 "bad shared string size."); | 241 "bad shared string size."); |
242 _the_table = new StringTable(t, number_of_entries); | 242 _the_table = new StringTable(t, number_of_entries); |
243 } | 243 } |
244 | 244 |
245 static int hash_string(jchar* s, int len); | |
246 | |
247 // GC support | 245 // GC support |
248 // Delete pointers to otherwise-unreachable objects. | 246 // Delete pointers to otherwise-unreachable objects. |
249 static void unlink(BoolObjectClosure* cl); | 247 static void unlink(BoolObjectClosure* cl); |
250 | 248 |
251 // Invoke "f->do_oop" on the locations of all oops in the table. | 249 // Invoke "f->do_oop" on the locations of all oops in the table. |