Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/os.hpp @ 12144:d8e99408faad
8009062: poor performance of JNI AttachCurrentThread after fix for 7017193
Summary: don't re-evaluate stack bounds for main thread before install guard page
Reviewed-by: coleenp, dholmes, dlong
author | dsamersoff |
---|---|
date | Thu, 29 Aug 2013 21:48:23 +0400 |
parents | 4c84d351cca9 |
children | c636758ea616 |
comparison
equal
deleted
inserted
replaced
12142:76482cbba706 | 12144:d8e99408faad |
---|---|
722 // System loadavg support. Returns -1 if load average cannot be obtained. | 722 // System loadavg support. Returns -1 if load average cannot be obtained. |
723 static int loadavg(double loadavg[], int nelem); | 723 static int loadavg(double loadavg[], int nelem); |
724 | 724 |
725 // Hook for os specific jvm options that we don't want to abort on seeing | 725 // Hook for os specific jvm options that we don't want to abort on seeing |
726 static bool obsolete_option(const JavaVMOption *option); | 726 static bool obsolete_option(const JavaVMOption *option); |
727 | |
728 // Read file line by line. If line is longer than bsize, | |
729 // rest of line is skipped. Returns number of bytes read or -1 on EOF | |
730 static int get_line_chars(int fd, char *buf, const size_t bsize); | |
731 | 727 |
732 // Extensions | 728 // Extensions |
733 #include "runtime/os_ext.hpp" | 729 #include "runtime/os_ext.hpp" |
734 | 730 |
735 public: | 731 public: |