remove resource_limit.ulimited, switch to ResourceLimit.INFINITY

This commit is contained in:
Doug MacEachern committed 2005-07-21 23:34:36 +00:00
1 parent 76260ce6f3
commit 56aa4553f5
5 files changed
+26 -19

No files matched your search

+3 -3
View File
@@ -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() {
+11
View File
@@ -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
}