• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • Projects
  • Repositories
    • View all public repositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
David Young
  1. David Young

vchoi_fork

Vailin Choi
my_hdf5_fork
Public
Actions
  • Clone
  • Download

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Graphs
  • Branches
  • Network
  • Latest Activities

Commits

John Mainzer
c2188b9781e
John Mainzer committed 2c58126fdd922 Dec 2004
[svn-r9700] Purpose:

Fix a bug in the cache caused by a slightly over active sanity check.


Description:

When the #define H5C_DO_SANITY_CHECKS is TRUE, the macro
H5C__DLL_PRE_INSERT_SC is executed prior to inserting an
entry in the LRU list.  The macro performs a variety of
sanity checks, and flags an error if any of the checks
fail.

Prior to this update, the macro used to check to see if
the target list had length 1 and size <= 0.  The new
epoch marker entries used in the age out cache size
reduction algorithm have size zero -- making it possible
for this sanity check to fail incorrectly.

Note that cache sanity checks are disabled in the CVS
version of the code, so this bug and bug fix should be
invisible unless you are working with the cache, and
turn the sanity checks on.


Solution:

Removed the offending clause in H5C__DLL_PRE_INSERT_SC.  Since
the size used in the macro is typically a size_t and thus
cannot have negative value, there was no point in changing
it to "size < 0".


Platforms tested:

Ran a serial test on heping.

Under the circumstances, I didn't feel the need for further
testing.


Misc. update:

Changed files

  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v4.4.1
  • Documentation
  • Contact Support
  • Request a feature
  • About
  • Contact Atlassian
Atlassian