summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2013-11-19 13:54:52 +0100
committerManuel Mohr <manuel.mohr@kit.edu>2013-11-19 13:54:52 +0100
commit01a8a1f414fa6884e851a15e8886e5ef7f2c0a37 (patch)
tree001a8c315f5b88aee113d97bd64e1bb9724bfe4a
parent309dc2308e6731009f36f8a40489607d1031c0e2 (diff)
Cleanup code.
-rw-r--r--include/private/gcconfig.h6
-rw-r--r--octopos_threads.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index f49d130..af0e930 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -544,8 +544,8 @@
# define mach_type_known
# define GC_OCTOPOS_THREADS
-# define DATASTART2 (get_tlm_start())
-# define DATAEND2 (((char*)get_tlm_start()) + get_tlm_size())
+# define DATASTART2 ((ptr_t)get_tlm_start())
+# define DATAEND2 (((ptr_t)get_tlm_start()) + get_tlm_size())
# undef GC_GCJ_SUPPORT
@@ -553,7 +553,7 @@
# define DONT_USE_ATEXIT
# define NO_GETENV
-# define STRTOULL /* no implementation */
+# define STRTOULL(x,y,z) ULONG_MAX
# define GC_NO_FINALIZATION
# define HBLKSIZE 4096
diff --git a/octopos_threads.c b/octopos_threads.c
index 10f0672..918d5c0 100644
--- a/octopos_threads.c
+++ b/octopos_threads.c
@@ -16,6 +16,7 @@
/* Allocation spinlock. */
GC_INNER simple_spinlock GC_allocate_ml;
+GC_INNER GC_bool GC_need_to_lock = FALSE;
GC_INNER void GC_stop_world(void)
{
@@ -54,6 +55,7 @@ GC_INNER void GC_push_all_stacks(void)
*/
GC_INNER void GC_do_blocking_inner(ptr_t data, void * context GC_ATTR_UNUSED)
{
+ (void)data;
GC_log_printf("Called GC_do_blocking_inner with is not yet implemented\n");
// This functionality is currently not important.