ruby: Fix overflow reported by ASAN in MessageBuffer.
authorMatthew Poremba <matthew.poremba@amd.com>
Fri, 2 Dec 2016 16:40:40 +0000 (11:40 -0500)
committerMatthew Poremba <matthew.poremba@amd.com>
Fri, 2 Dec 2016 16:40:40 +0000 (11:40 -0500)
commit80607a2a1d32a15cabf9110e27855acb40a06f23
treee4bb882b9f86dc7b25dff6dab45a6dcb47ad9ac0
parent752033140228c790e51954bd8ccd3728f4dd7e08
ruby: Fix overflow reported by ASAN in MessageBuffer.

In MessageBuffer the m_not_avail_count member is incremented but not used.
This causes an overflow reported by ASAN. This patch changes from an int to
Stats::Scalar, since the count is useful in debugging finite MessageBuffers.
src/mem/ruby/network/MessageBuffer.cc
src/mem/ruby/network/MessageBuffer.hh