Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
cc3835e6
Commit
cc3835e6
authored
Aug 10, 2001
by
Loren J. Rittle
Committed by
Loren J. Rittle
Aug 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
From-SVN: r44771
parent
d67c7dd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
libjava/ChangeLog
+4
-0
libjava/java/lang/natObject.cc
+4
-0
No files found.
libjava/ChangeLog
View file @
cc3835e6
2001-08-10 Loren J. Rittle <ljrittle@acm.org>
* java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
2001-08-06 Tom Tromey <tromey@redhat.com>
2001-08-06 Tom Tromey <tromey@redhat.com>
* java/io/InputStreamReader.java (refill): Only call refill on
* java/io/InputStreamReader.java (refill): Only call refill on
...
...
libjava/java/lang/natObject.cc
View file @
cc3835e6
...
@@ -436,8 +436,12 @@ typedef size_t obj_addr_t; /* Integer type big enough for object */
...
@@ -436,8 +436,12 @@ typedef size_t obj_addr_t; /* Integer type big enough for object */
static
bool
static
bool
is_mp
()
is_mp
()
{
{
#ifdef _SC_NPROCESSORS_ONLN
long
nprocs
=
sysconf
(
_SC_NPROCESSORS_ONLN
);
long
nprocs
=
sysconf
(
_SC_NPROCESSORS_ONLN
);
return
(
nprocs
>
1
);
return
(
nprocs
>
1
);
#else
return
false
;
#endif
}
}
// A call to keep_live(p) forces p to be accessible to the GC
// A call to keep_live(p) forces p to be accessible to the GC
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment