Mercurial > hg > graal-compiler
comparison src/share/vm/code/icBuffer.hpp @ 8767:a5de0cc2f91c
8008555: Debugging code in compiled method sometimes leaks memory
Summary: support for strings that have same life-time as code that uses them.
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Mon, 18 Mar 2013 13:19:06 +0100 |
parents | b31471cdc53e |
children | b9a918201d47 de6a9e811145 |
comparison
equal
deleted
inserted
replaced
8765:592f9722c72e | 8767:a5de0cc2f91c |
---|---|
48 /* stub code follows here */ | 48 /* stub code follows here */ |
49 protected: | 49 protected: |
50 friend class ICStubInterface; | 50 friend class ICStubInterface; |
51 // This will be called only by ICStubInterface | 51 // This will be called only by ICStubInterface |
52 void initialize(int size, | 52 void initialize(int size, |
53 CodeComments comments) { _size = size; _ic_site = NULL; } | 53 CodeStrings strings) { _size = size; _ic_site = NULL; } |
54 void finalize(); // called when a method is removed | 54 void finalize(); // called when a method is removed |
55 | 55 |
56 // General info | 56 // General info |
57 int size() const { return _size; } | 57 int size() const { return _size; } |
58 static int code_size_to_size(int code_size) { return round_to(sizeof(ICStub), CodeEntryAlignment) + code_size; } | 58 static int code_size_to_size(int code_size) { return round_to(sizeof(ICStub), CodeEntryAlignment) + code_size; } |