src/share/vm/code/stubs.cpp

changeset 4767
a5de0cc2f91c
parent 4153
b9a9ed0f8eeb
child 4993
746b070f5022
     1.1 --- a/src/share/vm/code/stubs.cpp	Sat Mar 16 21:44:52 2013 -0700
     1.2 +++ b/src/share/vm/code/stubs.cpp	Mon Mar 18 13:19:06 2013 +0100
     1.3 @@ -101,8 +101,8 @@
     1.4  
     1.5  Stub* StubQueue::request_committed(int code_size) {
     1.6    Stub* s = request(code_size);
     1.7 -  CodeComments comments;
     1.8 -  if (s != NULL) commit(code_size, comments);
     1.9 +  CodeStrings strings;
    1.10 +  if (s != NULL) commit(code_size, strings);
    1.11    return s;
    1.12  }
    1.13  
    1.14 @@ -119,8 +119,8 @@
    1.15        assert(_buffer_limit == _buffer_size, "buffer must be fully usable");
    1.16        if (_queue_end + requested_size <= _buffer_size) {
    1.17          // code fits in at the end => nothing to do
    1.18 -        CodeComments comments;
    1.19 -        stub_initialize(s, requested_size, comments);
    1.20 +        CodeStrings strings;
    1.21 +        stub_initialize(s, requested_size, strings);
    1.22          return s;
    1.23        } else {
    1.24          // stub doesn't fit in at the queue end
    1.25 @@ -137,8 +137,8 @@
    1.26      // Queue: |XXX|.......|XXXXXXX|.......|
    1.27      //        ^0  ^end    ^begin  ^limit  ^size
    1.28      s = current_stub();
    1.29 -    CodeComments comments;
    1.30 -    stub_initialize(s, requested_size, comments);
    1.31 +    CodeStrings strings;
    1.32 +    stub_initialize(s, requested_size, strings);
    1.33      return s;
    1.34    }
    1.35    // Not enough space left
    1.36 @@ -147,12 +147,12 @@
    1.37  }
    1.38  
    1.39  
    1.40 -void StubQueue::commit(int committed_code_size, CodeComments& comments) {
    1.41 +void StubQueue::commit(int committed_code_size, CodeStrings& strings) {
    1.42    assert(committed_code_size > 0, "committed_code_size must be > 0");
    1.43    int committed_size = round_to(stub_code_size_to_size(committed_code_size), CodeEntryAlignment);
    1.44    Stub* s = current_stub();
    1.45    assert(committed_size <= stub_size(s), "committed size must not exceed requested size");
    1.46 -  stub_initialize(s, committed_size, comments);
    1.47 +  stub_initialize(s, committed_size, strings);
    1.48    _queue_end += committed_size;
    1.49    _number_of_stubs++;
    1.50    if (_mutex != NULL) _mutex->unlock();

mercurial