remove resource_limit.ulimited, switch to ResourceLimit.INFINITY
This commit is contained in:
1 parent
76260ce6f3
commit
56aa4553f5
5 files changed
+26
-19
No files matched your search
@@ -803,9 +803,6 @@ my %classes = (
|
||||
},
|
||||
],
|
||||
ResourceLimit => [
|
||||
{
|
||||
name => 'unlimited',
|
||||
},
|
||||
{
|
||||
name => 'cpu_cur',
|
||||
},
|
||||
@@ -1143,6 +1140,9 @@ EOF
|
||||
(this.free / 1024) + "K free, " +
|
||||
(this.shared / 1024) + "K shrd";
|
||||
}
|
||||
EOF
|
||||
ResourceLimit => <<'EOF',
|
||||
public static native long INFINITY();
|
||||
EOF
|
||||
Swap => <<'EOF',
|
||||
public String toString() {
|
||||
|
||||
@@ -1248,3 +1248,14 @@ JNIEXPORT jlong SIGAR_JNI(Sigar_getServicePid)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
JNIEXPORT jlong SIGAR_JNI(ResourceLimit_INFINITY)
|
||||
(JNIEnv *env, jclass cls)
|
||||
{
|
||||
#ifdef WIN32
|
||||
return 0x7fffffff;
|
||||
#else
|
||||
#include <sys/resource.h>
|
||||
return RLIM_INFINITY;
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user