Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1759:64ba29e21134
Date: 2015-04-29 13:45 +0200
http://bitbucket.org/pypy/stmgc/changeset/64ba29e21134/

Log:    More of the same

diff --git a/c8/stm/misc.c b/c8/stm/misc.c
--- a/c8/stm/misc.c
+++ b/c8/stm/misc.c
@@ -44,7 +44,7 @@
     return obj->stm_flags & _STM_GCFLAG_CARDS_SET;
 }
 
-long _stm_count_cl_entries()
+long _stm_count_cl_entries(void)
 {
     struct stm_commit_log_entry_s *cl = &commit_log_root;
 
@@ -115,7 +115,7 @@
     return cards[get_index_to_card_index(idx)].rm;
 }
 
-uint8_t _stm_get_transaction_read_version()
+uint8_t _stm_get_transaction_read_version(void)
 {
     return STM_SEGMENT->transaction_read_version;
 }
@@ -124,7 +124,7 @@
 
 static struct stm_commit_log_entry_s *_last_cl_entry;
 static long _last_cl_entry_index;
-void _stm_start_enum_last_cl_entry()
+void _stm_start_enum_last_cl_entry(void)
 {
     _last_cl_entry = &commit_log_root;
     struct stm_commit_log_entry_s *cl = &commit_log_root;
@@ -135,7 +135,7 @@
     _last_cl_entry_index = 0;
 }
 
-object_t *_stm_next_last_cl_entry()
+object_t *_stm_next_last_cl_entry(void)
 {
     if (_last_cl_entry == &commit_log_root)
         return NULL;
@@ -150,7 +150,7 @@
 }
 
 
-void _stm_smallmalloc_sweep_test()
+void _stm_smallmalloc_sweep_test(void)
 {
     acquire_all_privatization_locks();
     _stm_smallmalloc_sweep();
diff --git a/c8/stmgc.h b/c8/stmgc.h
--- a/c8/stmgc.h
+++ b/c8/stmgc.h
@@ -94,13 +94,13 @@
 object_t *_stm_allocate_slowpath(ssize_t);
 object_t *_stm_allocate_external(ssize_t);
 void _stm_become_inevitable(const char*);
-void _stm_collectable_safe_point();
+void _stm_collectable_safe_point(void);
 
 object_t *_stm_allocate_old(ssize_t size_rounded_up);
 char *_stm_real_address(object_t *o);
 #ifdef STM_TESTS
 #include <stdbool.h>
-uint8_t _stm_get_transaction_read_version();
+uint8_t _stm_get_transaction_read_version(void);
 uint8_t _stm_get_card_value(object_t *obj, long idx);
 bool _stm_was_read(object_t *obj);
 bool _stm_was_written(object_t *obj);
@@ -137,9 +137,9 @@
 long _stm_count_objects_pointing_to_nursery(void);
 object_t *_stm_enum_modified_old_objects(long index);
 object_t *_stm_enum_objects_pointing_to_nursery(long index);
-object_t *_stm_next_last_cl_entry();
-void _stm_start_enum_last_cl_entry();
-long _stm_count_cl_entries();
+object_t *_stm_next_last_cl_entry(void);
+void _stm_start_enum_last_cl_entry(void);
+long _stm_count_cl_entries(void);
 long _stm_count_old_objects_with_cards_set(void);
 object_t *_stm_enum_old_objects_with_cards_set(long index);
 uint64_t _stm_total_allocated(void);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to