Mercurial > hg > graal-compiler
comparison src/share/vm/classfile/classLoader.cpp @ 1418:55ac38887415
modifications for linux: argument register layout, makefile
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 09 Jul 2010 16:33:03 -0700 |
parents | 1b41af477605 |
children | 2d26b0046e0d |
comparison
equal
deleted
inserted
replaced
1417:2c41834aa270 | 1418:55ac38887415 |
---|---|
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 = hpi::read(file_handle, (char*) buffer, st.st_size); | 167 size_t num_read = os::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) { |