Mercurial > hg > truffle
comparison src/share/vm/classfile/classLoader.cpp @ 1416:1b41af477605
Added HotSpotVM project Java source files.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Wed, 23 Jun 2010 16:36:58 +0200 |
parents | 99af867dfa05 |
children | 55ac38887415 |
comparison
equal
deleted
inserted
replaced
1415:712c7ff1afc1 | 1416:1b41af477605 |
---|---|
162 // found file, open it | 162 // found file, open it |
163 int file_handle = hpi::open(path, 0, 0); | 163 int file_handle = hpi::open(path, 0, 0); |
164 if (file_handle != -1) { | 164 if (file_handle != -1) { |
165 // read contents into resource array | 165 // read contents into resource array |
166 u1* buffer = NEW_RESOURCE_ARRAY(u1, st.st_size); | 166 u1* buffer = NEW_RESOURCE_ARRAY(u1, st.st_size); |
167 size_t num_read = os::read(file_handle, (char*) buffer, st.st_size); | 167 size_t num_read = hpi::read(file_handle, (char*) buffer, st.st_size); |
168 // close file | 168 // close file |
169 hpi::close(file_handle); | 169 hpi::close(file_handle); |
170 // construct ClassFileStream | 170 // construct ClassFileStream |
171 if (num_read == (size_t)st.st_size) { | 171 if (num_read == (size_t)st.st_size) { |
172 if (UsePerfData) { | 172 if (UsePerfData) { |