Hi Slava,
Slava Pestov wrote:
Phil, since you're hacking on the VM, you need to rebase any pending
changes on the new_gc branch. In the last few days in particular I
rewrote a lot of code completely and moved many things around (some
not GC-related) so there's a chance your code might need changes. I
plan on doing some even more refactorings before merging this into
master, so make sure you stay up to date.
Cool. I've rebased my native-locks patch on top of the new_gc branch
http://github.com/phildawes/factor/commits/native-locks
BTW, I had to patch time.factor to get new_gc to bootstrap (small diff
attached)
Cheers,
Phil
diff --git a/basis/tools/time/time-docs.factor b/basis/tools/time/time-docs.factor
index 408592d..19d6e77 100644
--- a/basis/tools/time/time-docs.factor
+++ b/basis/tools/time/time-docs.factor
@@ -9,7 +9,6 @@ ARTICLE: "timing" "Timing code"
"You can also read the system clock and garbage collection statistics directly:"
{ $subsections
micros
- gc-stats
}
{ $see-also "profiling" } ;
diff --git a/basis/tools/time/time.factor b/basis/tools/time/time.factor
index 948c0d4..d4505fa 100644
--- a/basis/tools/time/time.factor
+++ b/basis/tools/time/time.factor
@@ -58,10 +58,9 @@ IN: tools.time
] bi* ;
: time ( quot -- )
- gc-reset
reset-dispatch-stats
reset-inline-cache-stats
- benchmark gc-stats dispatch-stats inline-cache-stats
+ benchmark dispatch-stats inline-cache-stats
H{ { table-gap { 20 20 } } } [
[
[ [ time. ] 3dip ] with-cell
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk