equal
deleted
inserted
replaced
281 |
281 |
282 static void allocate_classpath_entry_table(); |
282 static void allocate_classpath_entry_table(); |
283 bool validate_classpath_entry_table(); |
283 bool validate_classpath_entry_table(); |
284 |
284 |
285 static SharedClassPathEntry* shared_classpath(int index) { |
285 static SharedClassPathEntry* shared_classpath(int index) { |
|
286 if (index < 0) { |
|
287 return NULL; |
|
288 } |
286 char* p = (char*)_classpath_entry_table; |
289 char* p = (char*)_classpath_entry_table; |
287 p += _classpath_entry_size * index; |
290 p += _classpath_entry_size * index; |
288 return (SharedClassPathEntry*)p; |
291 return (SharedClassPathEntry*)p; |
289 } |
292 } |
290 static const char* shared_classpath_name(int index) { |
293 static const char* shared_classpath_name(int index) { |
|
294 assert(index >= 0, "Sanity"); |
291 return shared_classpath(index)->_name; |
295 return shared_classpath(index)->_name; |
292 } |
296 } |
293 |
297 |
294 static int get_number_of_share_classpaths() { |
298 static int get_number_of_share_classpaths() { |
295 return _classpath_entry_table_size; |
299 return _classpath_entry_table_size; |