[kaffe] sanityCheck disabling...

Jukka Santala jsantala@tml.hut.fi
Fri, 14 Jun 2002 13:33:19 +0300 (EEST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-1254324197-1024050799=:1820
Content-Type: TEXT/PLAIN; charset=US-ASCII

Kaffe's register-slot sanity checking code is a significant CPU-eater.
Since I've never seen this sanity-check catch anything, I think for
standard builds it ought to be safe to simply disable it, and get
relatively significant performance-boost for cery little effort. Debug
builds probably ought to have it enabled, so maybe there's room to hook it
into some configure script parameters yet.

 -Jukka Santala

---559023410-1254324197-1024050799=:1820
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sanityCheckdis.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.10.10206141333190.1820@morphine.tml.hut.fi>
Content-Description: 
Content-Disposition: attachment; filename="sanityCheckdis.patch"

SW5kZXg6IGthZmZlL2thZmZldm0vaml0My9tYWNoaW5lLmMNCj09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3ZzL2thZmZlL2thZmZlL2th
ZmZlL2thZmZldm0vaml0My9tYWNoaW5lLmMsdg0KcmV0cmlldmluZyByZXZp
c2lvbiAxLjI4DQpkaWZmIC11IC1yMS4yOCBtYWNoaW5lLmMNCi0tLSBrYWZm
ZS9rYWZmZXZtL2ppdDMvbWFjaGluZS5jCTIwIEp1biAyMDAxIDIyOjUwOjAx
IC0wMDAwCTEuMjgNCisrKyBrYWZmZS9rYWZmZXZtL2ppdDMvbWFjaGluZS5j
CTE0IEp1biAyMDAyIDEwOjIwOjU4IC0wMDAwDQpAQCAtMTIsNyArMTIsNyBA
QA0KICAqIG9mIHRoaXMgZmlsZS4NCiAgKi8NCiANCi0jZGVmaW5lIFNDSEso
cykgcw0KKyNkZWZpbmUgU0NISyhzKQ0KICNkZWZ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